home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr48 / 386p_200.zip / HEADXVD.INC < prev    next >
Text File  |  1994-11-02  |  5KB  |  109 lines

  1. ; XVD XGE Video Driver
  2. ; Header format
  3. __XVD_SIGNATURE= 0
  4.                 ; It be the four byte signature 'XVD0'
  5.                 ; XGE Video Driver TYPE ZERO, four byte file marker
  6.                 ; use it to see if the binary file is  an XVD driver
  7.                 ; now here comes the driver base relative offsets
  8.                 ; of every function supported
  9. __XVDBiosCheck=4
  10.                 ; driver-base relative pointer to  XVDBiosCheck
  11.                 ; Returns carry clear if video bios is present
  12.                 ; sets vram video pages count into driver table
  13.                 ; and available display mode mask
  14.                 ; in: edi= XVD driver table , ebp= driver base offset
  15. __XVDChipSetCheck=8
  16.                 ; driver-base relative pointer to XVDChipSetCheck
  17.                 ; Returns carry clear if chipset is present
  18.                 ; sets vram video pages count into driver table
  19.                 ; and availabl;e display mode mask
  20.                 ; in: edi= XVD driver table , ebp= driver base offset
  21.  
  22.                   ; currently BOTH of these must be successful
  23.                   ; to "get safe access" to the graphics extensions.
  24.                   ;
  25.                   ; If __XVDBiosCheck fails you should want the user
  26.                   ; that bios is not recognized but it is possible to
  27.                   ; test for the chipset and then try to set
  28.                   ; the video mode hoping the mode set values
  29.                   ; are not different.
  30.                   ;
  31.                   ; A future XGE release will try to use VESA functions
  32.                   ; to set the video mode if _XXVDBiosCheck fails
  33.                   ; and then if _XVDChipSetCheck is successful
  34.                   ; it will "unlock" the extensions thru direct chipset access.
  35.                   ;
  36.                   ; To use "extended" multi-page mode 13h you only have
  37.                   ; to check for the chipset (the bios entry is the same
  38.                   ; for all boards) but remember to include in the bios check
  39.                   ; the code needed to "unlock" the vga extensions.
  40.                   ;
  41.                   ; both __XVDBiosCheck and __XVDChipSetCheck
  42.                   ; must be called with:
  43.                   ; edi= XVD driver table ptr
  44.                   ; ebp= driver base address
  45.                   ; _XVDVPages,_XVDMappings,_XVDVModes and _XVDASize
  46.                   ; will be updated to what the driver supports.
  47.  
  48. __XVDMode=12
  49.                   ; driver-base relative pointer to XVDMode
  50.                   ; Set video mode
  51.                   ; eax=requested video mode
  52.                   ; edi= XVD driver table ptr
  53.                   ; ebp= driver base address
  54.                   ; returns carry clear if successful
  55.  
  56. __XVDPage=16
  57.                   ; driver-base relative pointer to XVDPage
  58.                   ; Set the current "accessible"  64k video page
  59.                   ; in: eax= video page number
  60.                   ; out: edi= LINEAR address of video page
  61.                   ;           (subtract _Code32Base to this to get
  62.                   ;            the code32 relative offset)
  63.  
  64. __XVDVisible=20
  65.                   ; driver-base relative pointer to XVDVisible
  66.                   ; Set the base page of display buffer visible on screen
  67.                   ; in: eax= video page number
  68.  
  69. __XVDOpen=24
  70.                   ; driver-base relative pointer to XVDOpen
  71.                   ; Opens the "linear aperture"
  72.                   ; setting to the nearest aperture available on driver table
  73.                   ; (the 386video module must write on _XVDAperture
  74.                   ;  the "first" AVAILABLE PHYSICAL ADDRESS
  75.                   ;  (nor a code32 relative address neither
  76.                   ;   a "virtual memory" linear address, this functions
  77.                   ;   needs a "raw" address).
  78.                   ; edi=driver table, ebp=driver base address
  79.                   ; Returns carry clear if successful
  80.  
  81. __XVDClose=28
  82.                   ; driver-base relative pointer to XVDCLose
  83.                   ; Closes the "linear aperture"
  84.                   ; edi=driver table  ebp=driver base offset
  85.  
  86. __XVDLineSize=32
  87.                   ; driver-base relative pointer to XVDLineSize
  88.                   ; Set nex scanline width
  89.                   ; in: eax= requested scanline size
  90.                   ;     edi=driver table
  91.                   ;     ebp=driver base address
  92.                   ; out: nearest scanline size set into driver table
  93.  
  94. ; RGB palette handling functions
  95. ; (identical to _Set1Pal,_Get1Pal,_Set256pal)
  96. __XVDSet1Pal=36      ; driver-base relative pointer to XVDSet1Pal
  97. __XVDGet1Pal=40      ; driver-base relative pointer to XVDGet1Pal
  98. __XVDSet256Pal=44    ; driver-base relative pointer to XVDSet256Pal
  99. __XVDCardType=48     ; driver-base relative pointer to ASCIIZ string
  100.                      ; max. 30 character long
  101. __XVDProgrammer=52   ; driver-base relative pointer to ASCIIZ string
  102.                      ; with multiple lines of text,max. 40 char each
  103.                      ; (use the LF char (code 10h) to mark newlines)
  104. __XVDNotes=56        ; driver-base relative pointer to ASCIIZ string
  105.                      ; with multiple lines of text,max. 40 char each
  106.                      ; (use the LF char (code 10h) to mark newlines)
  107.                      ; Of notes about the driver usage and supperted display
  108.                      ; cards
  109.